package cn.starter;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {

    private HelloProperties helloProperties;

    public IndexController(HelloProperties helloProperties) {
        this.helloProperties = helloProperties;
    }

    @GetMapping("/index")
    public String hello() {
        return helloProperties.getName() + ", 图灵欢迎您！";
    }
}
